Skip to main content

describeTheEcs

Description

Inquiry ecs instance price.

Request Method

POST

Request Path

/customer/ecs/describe

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
regionIdBODYstringYesNo sample value for this parameter.Theregionidoftheecs.
instanceIdsBODYarrayYesNo sample value for this parameter.Theinstanceidsoftheecs

Return data

NameTypeSample valueDescription
resultobject`{"list":[{"vswitchId":"vsw-nj3e7hm36ecpt7y6g3pej","securityGroupId":"sg-nj301ppyjl24th0c8te6","instanceId":"i-nj301ppyjl2b308eh5xm","imageId":"centos_6_10_64_IPV6_20G_alibase_20201015.vhd","regionId":"cn-wulan-sta1-d01","systemDisk":{"size":99.0,"category":"cloud_efficiency"},"instanceType":"ecs.xn4.small","vpcId":"vpc-mb8t2h9tozxux8j7cmvxk","billingMethod":"Subscription","instanceFamily":"ecs.e4","imageType":"Public Image","expiredTime":704557527572}]}`result
resultCodestring0resultcode
resultMsgstringsuccessresultmessage

Example

Successful Response example

{
"result":
{
"list":
[
{
"vswitchId":"vsw-nj3e7hm36ecpt7y6g3pej",
"securityGroupId":"sg-nj301ppyjl24th0c8te6",
"instanceId":"i-nj301ppyjl2b308eh5xm",
"imageId":"centos_6_10_64_IPV6_20G_alibase_20201015.vhd",
"regionId":"cn-wulan-sta1-d01",
"systemDisk":
{
"size":99.0,
"category":"cloud_efficiency"
},
"instanceType":"ecs.xn4.small",
"vpcId":"vpc-mb8t2h9tozxux8j7cmvxk",
"billingMethod":"Subscription",
"instanceFamily":"ecs.e4",
"imageType":"Public Image",
"expiredTime":704557527572
}

]

},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}